package com.example.demo.service;

import com.example.demo.entity.Goods;
import com.example.demo.entity.GoodsSkusCombinations;

import java.util.List;
import java.util.Map;

public interface GoodsService {
    Goods createGoods(Goods goods);
    boolean updateGoods(Goods goods);
    int changeStatus(List<Integer> ids, Integer status);
    Map<String, Object> getGoodsPage(Integer page, Integer limit, String title, Integer category_id, Integer status, Boolean onlyShowStockWarning);
    int deleteGoods(List<Integer> ids);
    Goods getGoodsById(Integer id);
    Goods getGoodsDetailById(Integer id);
    Boolean setGoodsSkusAndCombinationsById(Integer id, Goods goods);
    Boolean setCombinationsDataById(Integer id, List<GoodsSkusCombinations> combs);
    
}
